import jieba.posseg as pseg
import sys
reload(sys)
sys.setdefaultencoding("utf-8")
file = open("result1/data.txt")
writer = open("result1/data1.txt","w")
i = 0
for line in file:
	print i
	words=pseg.cut(line)
	str = ""
	for word in words:
		if len(word.word) > 1:
			str += word.word + u" "
	writer.write(str + u"\n")
	i = i+1
file.close()
writer.close();